package com.fjut.zr.judge_system.POJO.PO;

import java.util.Objects;

public class TOjResultPO {
    private int id;
    private String rid;
    private String problem;
    private String result;
    private String memory;
    private String time;
    private String language;
    private String codelength;
    private String submitTime;
    private String judgeName;
    private String resultDetail;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getRid() {
        return rid;
    }

    public void setRid(String rid) {
        this.rid = rid;
    }

    public String getProblem() {
        return problem;
    }

    public void setProblem(String problem) {
        this.problem = problem;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getMemory() {
        return memory;
    }

    public void setMemory(String memory) {
        this.memory = memory;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getCodelength() {
        return codelength;
    }

    public void setCodelength(String codelength) {
        this.codelength = codelength;
    }

    public String getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(String submitTime) {
        this.submitTime = submitTime;
    }

    public String getJudgeName() {
        return judgeName;
    }

    public void setJudgeName(String judgeName) {
        this.judgeName = judgeName;
    }

    public String getResultDetail() {
        return resultDetail;
    }

    public void setResultDetail(String resultDetail) {
        this.resultDetail = resultDetail;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TOjResultPO that = (TOjResultPO) o;
        return id == that.id &&
                Objects.equals(rid, that.rid) &&
                Objects.equals(problem, that.problem) &&
                Objects.equals(result, that.result) &&
                Objects.equals(memory, that.memory) &&
                Objects.equals(time, that.time) &&
                Objects.equals(language, that.language) &&
                Objects.equals(codelength, that.codelength) &&
                Objects.equals(submitTime, that.submitTime) &&
                Objects.equals(judgeName, that.judgeName) &&
                Objects.equals(resultDetail, that.resultDetail);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, rid, problem, result, memory, time, language, codelength, submitTime, judgeName, resultDetail);
    }
}
